package java6;

import java.util.Scanner;
//任意输入一个整数，如12345，将其颠倒输出为54321
public class Code080 {
	public static void main(String args[]){
		System.out.println("请任意输入！");
		Scanner input=new Scanner(System.in);
		String a=input.next();
		char[] b=new char[a.length()];
		b=a.toCharArray();
		for(int i=b.length-1;i>=0;i--)
		{
			System.out.print(b[i]);
		}
	}
}
